package com.example.myinput;


public class MyInput {
    public static final String TOUCH= "--Touch";
    public static final String SWIPE="--Swipe";
    public static final String SWIPEBEZIER="--SwipeBezier"; //Bezier
    public static final String FENDUANBEZIER="--FenDuanBezier";  //Bezier
    public static final String FENDUANTRAJECTORY="--FenDuanTrajectory";  //Trajectory
    public static final String TOUCHSTOP="--TouchStop";  //TouchStop
    public static final String EVENTBEZIER="--EventBezier";  //Bezier
    public static final String EVENTTRAJECTORY="--EventTrajectory";  //Trajectory

    public static void main(String... args) {
        if(args.length==0){
            MySocket.run();
        }else{
            String arg1=args[0];
            switch (arg1){
                case TOUCH:
                    if (Touch.touchCheck(args)){
                        Touch.touch(args);
                    }
                    break;
                case SWIPE:
                    if(Touch.checkSwipe(args)){
                        Touch.swipe(args);
                    }
                    break;
                case SWIPEBEZIER:
                    if(Touch.checkSwipe(args)){
                        Touch.swipeBezier(args);
                    }
                    break;
                case FENDUANBEZIER:
                    if(Touch.checkFenDuan(args)){
                        Touch.fenDuan(args);
                    }
                    break;
                case FENDUANTRAJECTORY:
                    if(Touch.checkFenDuanTrajectory(args)){
                        Touch.fenDuanTrajectory(args);
                    }
                    break;
            }
        }
    }
}
